package com.jdd.modules.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdd.modules.form.entity.FormParkTotalInfo;
import com.jdd.modules.order.entity.DailyOrderInfo;
import com.jdd.modules.order.entity.ParkOrderInfo;
import com.jdd.modules.parking.entity.ParkWorkStation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: 停车订单详情管理
 * @Author: jdd
 * @Date: 2021-03-01
 * @Version: V1.0
 */
public interface ParkOrderInfoMapper extends BaseMapper<ParkOrderInfo> {

    /**
     * 订单详情
     * @param createTime
     * @return
     */
    List<DailyOrderInfo> orderDetail(@Param("createTime") String createTime);

    /**
     * 今日订单详情
     * @return
     */
    DailyOrderInfo todayOrderDetail();

    /**
     * 订单详情列表
     * @return
     */
    List<ParkOrderInfo> orderDetailList();

    /**
     * 订单，收入
     * @param startTime
     * @param endTime
     * @return
     */
    FormParkTotalInfo dailyOrderPayTypeNumberAndIncome( @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<ParkOrderInfo> getOrderByCarOutId(@Param("id") String id);

    List<ParkOrderInfo> getOrderByCarEnterId(@Param("carEnterId") String carEnterId);
}
